<include file="Common:header"/>
<body class="bank_withdraw">
	<div class="bannerbaowei">
			<div class="dajianxi"></div>
			<div class="tit1h4391">银行卡提现</div>
	</div>
	<div class="mymodal">
		<h1 style="color:#FF5454;text-align:center;font-size:1.3em;">
			重要提示：
		</h1>
		<p style="color:#656565;font-size:1.1em;">
			支付宝官方每笔转账收取0.15%手续费,最低2元最高25元。为鼓励用支付宝提现,满200
			元由<{$opt['site_name']}>官方承担手续费,低于200元自理。
		</p>
		<p>
			可用提现金额：<{$lastmoney}>元
		</p>
	</div>
	<div class="form_content">
		<form id="myform" action="" class="formm" onsubmit="return checkform()">
			<input type="hidden" name="paytype" value="1">
			<div class="form-input">
				<div class="user_name">
					<label for="money" class="label_font">提现金额：</label>
					<input type="text" class="input_e_i" name="money" value="" placeholder="请输入提现金额">
				</div>
			</div>
			<div class="form-input">
				<div class="user_name">
					<label for="money" class="label_font">手机号码：</label>
					<input type="text" class="input_e_i" name="mobile" value="" placeholder="请输入手机号码">
				</div>
			</div>
			<div class="max_box">
				<div class="form-input">
					<button class="input_e_s" onclick="change_name(this)">
						提&nbsp;交&nbsp;
					</button>
				</div>
			</div>
			<div class="max_box">
				<div class="form-input">
					<a href="<{:U('Home/User/bank_info')}>">
						<button class="input_e_s" style="background-color:#ea4354;" type="button">
							修改银行卡信息
						</button>
					</a>
				</div>
			</div>
		</form>
	</div>
	<script>
		function checkform(){
			var money = $("#money");
			var mobile = $("#mobile");

			if(money.val() == ''){
					layer.open({
						content:'请输入提现金额',
					});
					money.focus();
					return false;
			}

			if(mobile.val() == ''){
					layer.open({
						content:'请输入手机号码',
					});
					mobile.focus();
					return false;
			}


			var url ="<{:U('User/bank_withdraw')}>";
				$.post(url,$("#myform").serializeArray(),function(r){
						if(r.status == '1'){
							/*layer.open({
								content:r.msg,
							});*/
							location.href=r.url;
						}else{
							layer.open({
								content:r.msg,
							});
						}
				});
			return false;
		}
	</script>

	<include file="Common:menu"/>
</body>
</html>
